package com.haieros.www.purerunshowsystem.utils;

import android.content.Context;

import com.othershe.dutil.DUtil;
import com.othershe.dutil.callback.DownloadCallback;

/**
 * Created by admin on 2017/12/6.
 */

public class FileDownloadUtils {

    public static void downLoadFile(Context context,String url,String path,String name,DownloadCallback downloadCallback){

        DUtil.init(context)
                .url(url)
                .path(path)
                .name(name)
                .childTaskCount(1)  // 同时下载数
                .build()
                .start(downloadCallback); // 下载回调
    }
}
